package com.ruikong.dazhi.dao.basicinfo;



import com.ruikong.dazhi.entity.basicinfo.Shop;
import com.ruikong.dazhi.model.input.ShopPageInput;
import com.ruikong.dazhi.model.output.ShopPageOutput;

import java.util.List;

public interface ShopMapper {

    Shop queryById(Integer id);

    Integer queryByShopTypeId(Integer shopTypeId);

    Integer insert(Shop shop);

    Integer update(Shop shop);

    Integer deleteById(Integer id);

    List<ShopPageOutput> getShopPage(ShopPageInput s);

    Integer isExist(Shop shop);
    Integer isShopExist(String shopSn);
//    Integer isExist(@Param("id") int id, @Param("shopSn") String shopSn,@Param("shopName") String shopName);

    List<Shop> queryAllTree();

    List<Shop>selectAllShop();

    Shop queryShopByName(String shop_name);
}